<?php

/**
 * BaseMovimientoefectivo
 * 
 * This class is member of the DAO layer.
 * 
 * @property integer $id
 * @property integer $idMovimientoCaja
 * @property decimal $dolares
 * @property decimal $efectivo
 * @property float $tipoDeCambio
 * @property timestamp $fInsert
 * @property Movimientodecaja $Movimientodecaja
 * 
 * @author     Claudio Corlatti <corlatti@gmail.com>
 *  $Id: BaseMovimientoefectivo.php 12 2010-07-06 04:34:57Z corlatti $
 */
abstract class BaseMovimientoefectivo extends Doctrine_Record {
    public function setTableDefinition()
    {
        $this->setTableName('movimientoefectivo');
        $this->hasColumn('id', 'integer', 4, array('type' => 'integer', 'length' => 4, 'primary' => true, 'autoincrement' => true));
        $this->hasColumn('idMovimientoCaja', 'integer', 4, array('type' => 'integer', 'length' => 4, 'notnull' => true));
        $this->hasColumn('dolares', 'decimal', 10, array('type' => 'decimal', 'length' => 10, 'notnull' => true, 'scale' => false));
        $this->hasColumn('efectivo', 'decimal', 10, array('type' => 'decimal', 'length' => 10, 'notnull' => true, 'scale' => false));
        $this->hasColumn('tipoDeCambio', 'float', null, array('type' => 'float', 'notnull' => true));
        $this->hasColumn('fInsert', 'timestamp', null, array('type' => 'timestamp', 'notnull' => true));
		$this->hasColumn('fecha', 'date', null, array('type' => 'date', 'notnull' => true));        
    }

    public function setUp()
    {
        $this->hasOne('Movimientodecaja', array('local' => 'idMovimientoCaja',
                                                'foreign' => 'id'));
    }
}
?>